package intelligentCustomer.channel;

/**
 * 渠道适配器工厂类
 * 根据渠道类型创建相应的适配器实例
 */
public class ChannelAdapterFactory {
    /**
     * 获取特定渠道的适配器
     * 
     * @param channelType 渠道类型(web, wechat, app等)
     * @return 对应的渠道适配器实例
     */
    public static ChannelAdapter getAdapter(String channelType) {
        switch (channelType) {
            case "web":
                return new WebChannelAdapter();
            case "wechat":
                return new WechatChannelAdapter();
            case "app":
                return new AppChannelAdapter();
            default:
                return new DefaultChannelAdapter();
        }
    }
}